home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1988 / Oct⁄Nov 88 / Re- ViewEdit Default View ⁄ < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.7 KB  |  47 lines  |  [TEXT/GEOL]

  1. Item    4852505                         1-Nov-88        18:37
  2.  
  3. From:   CREMER.M                        Cremer, Mike
  4.  
  5. To:     D0756                           Tradenet, Dev, Adam Wildavsky
  6.  
  7. cc:     WETMORE1                        Wetmore, Russ
  8.         MACAPP.TECH$                    MACAPP Tech
  9.  
  10. Sub:    re ViewEdit default view
  11.  
  12. Adam,
  13.  
  14. "Ah, yes, verily and forsooth," said Goodgulf quickly.  "That is to say, yes
  15. and no.  Or perhaps just no."
  16. -Bored of the Rings, Harvard Lampoon
  17.  
  18. As far as I can tell, there is no way in ViewEdit to specify the default
  19. subview in the TWindow object.  It appears to default to noID ('    ').
  20. I usually use ViewEdit to get an approximation, then DeRez the lot and
  21. fine-tune it by hand.  Not the most pleasant task, I agree, but I like the idea
  22. of having the .r source to anything I use in a program (including PICTs...).
  23. But all is not lost.  I have two suggesions:
  24.  
  25. 1. DeRez just the view with ViewTypes.r as one of the template files
  26. (DeRez -only 'view' MyViews.rsrc "{RezMacApp}ViewTypes.r" > MyViews.r)
  27. and then edit the resulting .r code to fix the TWindow template.  This is not a
  28. great alternative, unless you like spending hours cleaning up the mess that
  29. DeRez leaves behind.
  30.  
  31. 2. Use ResEdit to fix the problem (avert thy gaze, Russ).  The default view
  32. should be the four spaces immediately before the window's title (i.e. "<<<>>>"
  33. if you use the defaults).  Just select the spaces and type in the id of the
  34. subview you want TWindow to target.
  35. *IMPORTANT* You want to make sure you get the correct bytes.  The first set of
  36. four spaces is the superID of the window, which should be left to spaces
  37. (root).
  38.  
  39. Other than that, beats me.  Any ideas, Russ?
  40.  
  41. Hope this helps.
  42.  
  43. $mike cremer
  44.  
  45.  
  46.  
  47.